package com.sicnustray.controller.dto;

import com.sicnustray.entity.Menu;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.util.List;

//登录
@Data
public class UserDTO {
    private Integer id;

    @NotBlank
    @Length(min=3,max=10,message = "用户名长度3-10")
    private String username;

    @NotBlank
    @Length(min=4,max=20,message = "密码长度4-20")
    private String password;

    private String nickname;
    private String avatarUrl;
    private String token;
    private List<Menu> menus;
    private String role;
}
